<?php
	require_once("web_fns.php");
	if (!session_id()) session_start();
	if(!isset($_SESSION['user_id'])) {
		echo 2;
	}
	else {
		$car_id = $_POST['car_id'];
		$check_result = delete_browsecars($users_info,$_SESSION['user_id'],$car_id);
		switch($check_result) {
			case "1":
				echo 1;
				break;
				
			case "0":
				echo 0;
				break;
		}
		
	}
?>